package br.ufrj.dcc.geti.riskanalytics;

import br.ufrj.dcc.geti.riskanalytics.simulator.BrownianMotion;




public class Main {
	
	public static void main(String[] args) {
		
		int qtdeVidas = 10000;
		int prazo = 150;
		double []vidas = new double[qtdeVidas];
		double aux = 0;
		BrownianMotion bm;
		
		
		
		for (int i = 0; i < qtdeVidas; i++){
			bm = new BrownianMotion(0, 0.25);	
			
			for (int j = 0; j < prazo; j++){
				aux = bm.getSample();
				//System.out.println(String.valueOf(aux).replace(".", ","));
			}
			
			vidas[i] = aux;
			System.out.print(String.valueOf(aux).replace(".", ",") + ";");
		}
	}
	
	
}
